<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>api</title>
    <style>
        input {
            margin: 5px;
        }

        div {
            line-height: 25px;
        }

        div.ti {
            font-size: 25px;
            line-height: 30px;
        }

        a:link {
            color: #FF0000
        }

        a:visited {
            color: #FF0000
        }

        a:hover {
            color: #FF00FF
        }

        a:active {
            color: #0000FF
        }

    </style>
</head>
<body>
登录包括注册---------------ok
<br/>验证码发送
<br/>修改个人信息---------------ok
<br/>发送绑定好友信息(如果是系统用户 发推送 否则 短信)---------------ok
<br/>推送--确认绑定好友，拒绝绑定好友（通过状态区分）---------------ok
<br/>下载--查询好友绑定信息
<br/>查询自己好友列表（包括状态）-----------------bobo----ok
<br/>报警接口(sos--userid--fuserid--push)-----------------ok
<br/>接受报警-----------------ok
<br/>删除好友绑定记录-----------------bobo----ok
<br/>查询报警记录 ---------------ok
<br/>查询接收的报警记录列表
<br/>上传定位-----------------ok
<br/>
<br/>
<a href="{:U('Home/index/userDeal')}">用户协议</a>
<br/>
<header class="kfsc-header">
    <i></i>
    <h1>api接口</h1>
</header>
<div class="ti">登录(+8618088008660)</div>
<div>post: /index.php/Home/index/login</div>
<div>参数:</div>
<div>code 短信验证码</div>
<div>user_phone 手机号码</div>
<form action="{:U('Home/index/login')}" method="post">
    <input type="text" name="code">短信验证码(默认2333)
    <br/>
    <input type="text" name="user_phone">手机号码
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">修改个人信息</div>
<div>post: /index.php/Home/index/changeUser</div>
<div>参数:</div>
<div>user_id</div>
<div>first_name</div>
<div>last_name</div>
<div>sex</div>
<div>head_image</div>
<div>help_text</div>
<div>repeat_times</div>
<form action="{:U('Home/index/changeUser')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="first_name">first_name
    <br/>
    <input type="text" name="last_name">last_name
    <br/>
    <input type="text" name="sex">sex
    <br/>
    <input type="text" name="head_image">head_image
    <br/>
    <input type="text" name="help_text">help_text
    <br/>
    <input type="text" name="repeat_times">repeat_times
    <br/>
    <input type="submit" value="提交">
</form>


<br/>
<div class="ti">发送绑定好友信息---如果是系统用户 发推送 否则 短信</div>
<div>post: /index.php/Home/index/sendBinding</div>
<div>参数:</div>
<div>user_id</div>
<div>user_phone 你要绑定好友的电话号码</div>
<form action="{:U('Home/index/sendBinding')}" method="post">
    <input type="text" name="user_phone">user_phone
    <br/>
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">确定或者拒绝好友信息</div>
<div>post: /index.php/Home/index/isBinding</div>
<div>参数:</div>
<div>user_id</div>
<div>binding_id</div>
<div>state 状态 接受ok 拒绝no 等待(就是没有处理 也是最开始发送时的默认状态)loading</div>
<form action="{:U('Home/index/isBinding')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="binding_id">binding_id
    <br/>
    <input type="text" name="state">state
    <br/>
    <input type="submit" value="提交">
</form>
<br/>

<br/>
<div class="ti">报警 (返回值是sosid,需要保存起来,后面上传定位什么的要用到)</div>
<div>post: /index.php/Home/sos/sos</div>
<div>参数:</div>
<div>user_id</div>
<div>help_text</div>
<div>location 当前的位置 定位信息 自定义 后面你定位的时候给你传过来的</div>
<form action="{:U('Home/sos/sos')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="location">location
    <br/>
    <input type="text" name="add_res">add_res
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">接受报警</div>
<div>post: /index.php/Home/sos/AcceptSos</div>
<div>参数:</div>
<div>user_id</div>
<div>push_id</div>
<form action="{:U('Home/sos/AcceptSos')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="push_id">push_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询报警(可以查到报警人定位信息)</div>
<div>post: /index.php/Home/sos/querySos</div>
<div>参数:</div>
<div>sos_id</div>
<form action="{:U('Home/sos/querySos')}" method="post">
    <input type="text" name="sos_id">sos_id
    <br/>
    <input type="submit" value="提交">
</form>


<br/>
<div class="ti">上传定位</div>
<div>post: /index.php/Home/sos/setLocation</div>
<div>参数:</div>
<div>sos_id</div>
<form action="{:U('Home/sos/setLocation')}" method="post">
    <input type="text" name="sos_id">sos_id
    <br/>
    <input type="text" name="location">location
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询我报警的记录 返回推送所有的好友</div>
<div>post: /index.php/Home/sos/querySosByPush</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/sos/querySosByPush')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询别人向我报警的记录</div>
<div>post: /index.php/Home/sos/queryUserByPush</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/sos/queryUserByPush')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">删除好友关联</div>
<div>post: /index.php/Home/relieve/relieve</div>
<div>参数:</div>
<div>user_id</div>
<div>binding_id</div>
<form action="{:U('Home/relieve/relieve')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="binding_id">binding_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询好友列表</div>
<div>post: /index.php/Home/relieve/find</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/relieve/find')}" method="get">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询个人信息</div>
<div>post: /index.php/Home/index/queryUser</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/index/queryUser')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">删除莫某个人向我报警的记录</div>
<div>post: /index.php/Home/sos/delect_UserByPush</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/sos/deleteUserByPush')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="text" name="delete_user_id">delete_user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">删除某个我报警的记录</div>
<div>post: /index.php/Home/sos/deleteSosByPush</div>
<div>参数:</div>
<div>user_id</div>
<form action="{:U('Home/sos/deleteSosByPush')}" method="post">
    <input type="text" name="sos_id">sos_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">上传图片</div>
<div>post: /index.php/Home/index/Findex</div>

<br/>
<div class="ti">发验证码</div>
<div>post: /index.php/Home/index/sendCode</div>
<div>参数:</div>
<form action="{:U('Home/index/sendCode')}" method="post">
    <input type="text" name="phone">phone
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询该用户推送信息</div>
<div>post: /index.php/Home/sos/queryUserPush</div>
<div>参数:</div>
<form action="{:U('Home/sos/queryUserPush')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>

<br/>
<div class="ti">查询该用户邀请他的好友信息</div>
<div>post: /index.php/Home/sos/queryFriendList</div>
<div>参数:</div>
<form action="{:U('Home/sos/queryFriendList')}" method="post">
    <input type="text" name="user_id">user_id
    <br/>
    <input type="submit" value="提交">
</form>
</body>
</html>